package com.icss.flow.pojo.dto;


import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.icss.flow.config.BooleanToIntJsonDeserializer;
import com.icss.flow.pojo.entity.TMetaField;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.util.List;

@Data
public class TMetaEntityDTO {
    private Integer autoId;

    private String entityId;


    @Pattern(regexp = "^[A-Za-z][A-Za-z0-9_]*$", message = "实体名称不规范！")
    private String name;

    private String label;

    private String physicalName;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer entityCode;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer detailEntityFlag;

    private String mainentity;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer layoutable;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer listable;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer authorizable;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer shareable;

    @JsonDeserialize(using = BooleanToIntJsonDeserializer.class)
    private Integer assignable;
    /**
     * 分类标签
     */
    private String tags;

    private String entityJson;

    private List<TMetaField> fieldList;

    private Boolean createFlag;

    private String flowKey;



}
